#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Time   :2020/8/7 10:25
# Author : fengzhilaoling
from flask import Flask
# import os
# import sys
# current_dir = os.path.dirname(__file__)
# conf_dir = os.path.join(current_dir, 'conf')
# sys.path.append(conf_dir)
# from conf.config import DevelopmentConfig

app = Flask('my_app')
# app.config['DEBUG'] = True
# app.config.update(
#     DEBUG=True
# )
# app.config.from_object(DevelopmentConfig)
app.config.from_pyfile('conf/settings.py', silent=True)
host = app.config.get('HOST')
print(host)


if __name__ == "__main__":
    app.run()